package com.store.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2021-04-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_order")
public class Order extends PageParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @TableId(value = "order_id", type = IdType.ID_WORKER_STR)
    private String orderId;

    /**
     * 顾客序号
     */
    private String customerNumber;

    /**
     * 点单时间
     */
    private Date orderTime;

    /**
     * 预约时间
     */
    private Date reserveTime;

    /**
     * 订单状态
     */
    private String orderStatus;

    /**
     * 支付状态
     */
    private String payStatus;

    /**
     * 点餐员ID
     */
    private String createUser;

    private String createUserName;

    private Double totalPrice;

    @TableField(exist = false)
    private List<OrderFood> foodList;


}
